package com.kangye.learnstudent.mapper;

import com.kangye.learnstudent.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * @program: learndeduo
 * @description: 用户接口
 * @author: stl
 * @create: 2021-05-17 09:32
 **/
@Repository
public interface UserMapper {

    /*学生登录数据接口*/
    User userLogin(String userUserName ,String userPassword);
    /*根据学生用户名查询学生*/
    User userByUserName(String userUserName);
    /*根据用户名修改密码*/
    Integer userByUserNameUpdPassword(String userUserName,String userPassword);
    /*学生注册*/
    Integer registerUser(User user);
    /*根据学生id个人信息展示*/
    User userSelect(Integer userId);
    /*根据id学生修改个人信息*/
    Integer userUpdata(User user);

}